from selenium import webdriver

url = 'https://qzone.qq.com/'

driver = webdriver.Chrome()
driver.get(url)

#
driver.switch_to.frame('login_frame')

driver.find_element_by_id('switcher_plogin').click()
driver.find_element_by_id('u').send_keys('1176612405')
driver.find_element_by_id('p').send_keys('QQMIMA1016')
driver.find_element_by_id('login_button').click()